package com.atguigu.gmall.web.all.config;


import com.atguigu.gmall.common.result.Result;
import com.sun.org.apache.xalan.internal.xsltc.runtime.ErrorMessages_zh_CN;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

//@ControllerAdvice
public class GlobalExceptionHandler {
/*
    @ExceptionHandler(Exception.class)
    @ResponseBody
    public Result handException(Exception e){

        Result<Object> fail = Result.fail();
        fail.setMessage(e.getMessage());
        return fail;
    }*/


}
